desc:CheckLatency(Receiver) v1-3

@init
ext_noinit = 1;

@slider

@block

@sample
_global.TestState == 1 ? (
  spl0 >= _global.treshold || spl1 >= _global.treshold ? (
    _global.TestState = 2; // 2 = SampleReceived
  ) : (
    _global.waiting += 1;  // increase cnt
    _global.waiting > _global.wait_max ? _global.TestState = 4; // 8 = Fail
  );
);

spl0 = spl1 = 0; // reset output samples
